<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IRremoteESP8266: MideaProtocol Union Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IRremoteESP8266
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="unionMideaProtocol-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MideaProtocol Union Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Native representation of a Midea A/C message.  
 <a href="unionMideaProtocol.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ir__Midea_8h_source.html">ir_Midea.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a8d696bb16d652ef6d582014049be2bbb"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionMideaProtocol.html#a8d696bb16d652ef6d582014049be2bbb">remote_state</a></td></tr>
<tr class="memdesc:a8d696bb16d652ef6d582014049be2bbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">The state in native IR code form.  <a href="unionMideaProtocol.html#a8d696bb16d652ef6d582014049be2bbb">More...</a><br /></td></tr>
<tr class="separator:a8d696bb16d652ef6d582014049be2bbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0247df137fd725922759edb1b115226c"><td class="memItemLeft" >struct {</td></tr>
<tr class="memitem:a029709ad1da04606039ed86f8e15456e"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a3d4afe5411a769c48e8bfaa3a9e8e84c">Sum</a></td></tr>
<tr class="separator:a029709ad1da04606039ed86f8e15456e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e42c964eae5794c0882f0d147488324"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a2ce21157e61749f4d1c3b14fd0b6cfe8">SensorTemp</a>:7</td></tr>
<tr class="memdesc:a5e42c964eae5794c0882f0d147488324"><td class="mdescLeft">&#160;</td><td class="mdescRight">Degrees or OnTimer.  <a href="structMideaProtocol_1_1_0d59.html#a5e42c964eae5794c0882f0d147488324">More...</a><br /></td></tr>
<tr class="separator:a5e42c964eae5794c0882f0d147488324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59becedd3dda61b99a8ef6891fb53a73"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a20cc2079eae404c980cc75101b4a3116">disableSensor</a>:1</td></tr>
<tr class="separator:a59becedd3dda61b99a8ef6891fb53a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09a6335902d6a272d8802148558c716e"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#ab48c834ee5a37297d04e71e6e32468d2">__pad0__</a>:1</td></tr>
<tr class="separator:a09a6335902d6a272d8802148558c716e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1319090c31734ea5199352f738cab5df"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#afd53c8223249e271fe48d03c67a74364">OffTimer</a>:6</td></tr>
<tr class="memdesc:a1319090c31734ea5199352f738cab5df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Nr of Half hours. Off is 0b111111.  <a href="structMideaProtocol_1_1_0d59.html#a1319090c31734ea5199352f738cab5df">More...</a><br /></td></tr>
<tr class="separator:a1319090c31734ea5199352f738cab5df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2d4aff34681b15f1d1b81575cb67d6a"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a2a1d3b51765737427adb5dddcda84d60">BeepDisable</a>:1</td></tr>
<tr class="memdesc:aa2d4aff34681b15f1d1b81575cb67d6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">0 = no beep in follow me messages, 1 = beep.  <a href="structMideaProtocol_1_1_0d59.html#aa2d4aff34681b15f1d1b81575cb67d6a">More...</a><br /></td></tr>
<tr class="separator:aa2d4aff34681b15f1d1b81575cb67d6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7789a778b81420b9bd2cefadc43c6e79"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a4206c02c5cafe996c05d92beb7a7e8d6">Temp</a>:5</td></tr>
<tr class="separator:a7789a778b81420b9bd2cefadc43c6e79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ee0f80d7c3953998b9e992df71a2160"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a1b1258107620bb83fd6356815242e19b">useFahrenheit</a>:1</td></tr>
<tr class="separator:a4ee0f80d7c3953998b9e992df71a2160"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4eba9376fe265838d56f6752a68ee35c"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a3351e3af6d3f214536e593c450fa0915">__pad1__</a>:0</td></tr>
<tr class="separator:a4eba9376fe265838d56f6752a68ee35c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fae344d63df391aaf0c933594dd39a4"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#aa0255e9e1351d594b2e2c8c6f9698e1a">Mode</a>:3</td></tr>
<tr class="separator:a7fae344d63df391aaf0c933594dd39a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45055a62c5aba4440a3e16d1dfb93723"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a04b0f344ec9b7cf2bdbd2c530b409fcb">Fan</a>:2</td></tr>
<tr class="separator:a45055a62c5aba4440a3e16d1dfb93723"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f13637d07dc9052875f4130bc2e79f1"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#ab638086cc0b8d25fba57278c7ba881cb">__pad2__</a>:1</td></tr>
<tr class="memdesc:a9f13637d07dc9052875f4130bc2e79f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unknown, but set on <em>some</em> Pioneer System A/Cs.  <a href="structMideaProtocol_1_1_0d59.html#a9f13637d07dc9052875f4130bc2e79f1">More...</a><br /></td></tr>
<tr class="separator:a9f13637d07dc9052875f4130bc2e79f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4473200c8548ce3e0781906ec272d8f3"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#aeea5e2520e4cd1773c1eddc8a84af2d3">Sleep</a>:1</td></tr>
<tr class="separator:a4473200c8548ce3e0781906ec272d8f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76aad44beacb2e7cd1517369416b9d3f"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a6b534bb5845c3c184ee43b87995cff32">Power</a>:1</td></tr>
<tr class="separator:a76aad44beacb2e7cd1517369416b9d3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae295f0c353943c6d710dc5dbad490574"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#ae6deb4675602e9d1be3f8a49c601cdce">Type</a>:3</td></tr>
<tr class="memdesc:ae295f0c353943c6d710dc5dbad490574"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normal, Special, or FollowMe message type.  <a href="structMideaProtocol_1_1_0d59.html#ae295f0c353943c6d710dc5dbad490574">More...</a><br /></td></tr>
<tr class="separator:ae295f0c353943c6d710dc5dbad490574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1352a35f3e670453ef250ab41fe5d5d"><td class="memItemLeft" >&#160;&#160;&#160;uint8_t&#160;&#160;&#160;<a class="el" href="unionMideaProtocol.html#a892508b7b4cade91dd2e315b678f5f1b">Header</a>:5</td></tr>
<tr class="memdesc:aa1352a35f3e670453ef250ab41fe5d5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typically 0b10100.  <a href="structMideaProtocol_1_1_0d59.html#aa1352a35f3e670453ef250ab41fe5d5d">More...</a><br /></td></tr>
<tr class="separator:aa1352a35f3e670453ef250ab41fe5d5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0247df137fd725922759edb1b115226c"><td class="memItemLeft" valign="top">};&#160;</td><td class="memItemRight" valign="bottom"></td></tr>
<tr class="separator:a0247df137fd725922759edb1b115226c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Native representation of a Midea A/C message. </p>
<dl class="section note"><dt>Note</dt><dd>Compile-time model specific overrides. Uncomment one of these if you have such a devices to better match your A/C. It changes some of the special commands/settings.</dd>
<dd>
Some Pioneer Systems have required a special bit to be set in order for the A/C unit to accept the message. We don't currently understand what this bit does. See the link for details of how to set this if needed. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="https://github.com/crankyoldgit/IRremoteESP8266/issues/1342#issuecomment-733721085">https://github.com/crankyoldgit/IRremoteESP8266/issues/1342#issuecomment-733721085</a> </dd></dl>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a0247df137fd725922759edb1b115226c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0247df137fd725922759edb1b115226c">&#9670;&nbsp;</a></span>@60</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct { ... } </td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab48c834ee5a37297d04e71e6e32468d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab48c834ee5a37297d04e71e6e32468d2">&#9670;&nbsp;</a></span>__pad0__</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::__pad0__</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a3351e3af6d3f214536e593c450fa0915"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3351e3af6d3f214536e593c450fa0915">&#9670;&nbsp;</a></span>__pad1__</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::__pad1__</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab638086cc0b8d25fba57278c7ba881cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab638086cc0b8d25fba57278c7ba881cb">&#9670;&nbsp;</a></span>__pad2__</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::__pad2__</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unknown, but set on <em>some</em> Pioneer System A/Cs. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>Find out what this bit controls. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="https://github.com/crankyoldgit/IRremoteESP8266/issues/1342#issuecomment-733721085">https://github.com/crankyoldgit/IRremoteESP8266/issues/1342#issuecomment-733721085</a> </dd></dl>

</div>
</div>
<a id="a2a1d3b51765737427adb5dddcda84d60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a1d3b51765737427adb5dddcda84d60">&#9670;&nbsp;</a></span>BeepDisable</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::BeepDisable</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>0 = no beep in follow me messages, 1 = beep. </p>

</div>
</div>
<a id="a20cc2079eae404c980cc75101b4a3116"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20cc2079eae404c980cc75101b4a3116">&#9670;&nbsp;</a></span>disableSensor</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::disableSensor</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a04b0f344ec9b7cf2bdbd2c530b409fcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04b0f344ec9b7cf2bdbd2c530b409fcb">&#9670;&nbsp;</a></span>Fan</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Fan</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a892508b7b4cade91dd2e315b678f5f1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a892508b7b4cade91dd2e315b678f5f1b">&#9670;&nbsp;</a></span>Header</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Header</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Typically 0b10100. </p>

</div>
</div>
<a id="aa0255e9e1351d594b2e2c8c6f9698e1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0255e9e1351d594b2e2c8c6f9698e1a">&#9670;&nbsp;</a></span>Mode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Mode</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="afd53c8223249e271fe48d03c67a74364"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd53c8223249e271fe48d03c67a74364">&#9670;&nbsp;</a></span>OffTimer</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::OffTimer</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Nr of Half hours. Off is 0b111111. </p>

</div>
</div>
<a id="a6b534bb5845c3c184ee43b87995cff32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b534bb5845c3c184ee43b87995cff32">&#9670;&nbsp;</a></span>Power</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Power</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8d696bb16d652ef6d582014049be2bbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d696bb16d652ef6d582014049be2bbb">&#9670;&nbsp;</a></span>remote_state</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t MideaProtocol::remote_state</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The state in native IR code form. </p>

</div>
</div>
<a id="a2ce21157e61749f4d1c3b14fd0b6cfe8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ce21157e61749f4d1c3b14fd0b6cfe8">&#9670;&nbsp;</a></span>SensorTemp</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::SensorTemp</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Degrees or OnTimer. </p>

</div>
</div>
<a id="aeea5e2520e4cd1773c1eddc8a84af2d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeea5e2520e4cd1773c1eddc8a84af2d3">&#9670;&nbsp;</a></span>Sleep</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Sleep</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a3d4afe5411a769c48e8bfaa3a9e8e84c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d4afe5411a769c48e8bfaa3a9e8e84c">&#9670;&nbsp;</a></span>Sum</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Sum</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4206c02c5cafe996c05d92beb7a7e8d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4206c02c5cafe996c05d92beb7a7e8d6">&#9670;&nbsp;</a></span>Temp</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Temp</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae6deb4675602e9d1be3f8a49c601cdce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6deb4675602e9d1be3f8a49c601cdce">&#9670;&nbsp;</a></span>Type</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::Type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normal, Special, or FollowMe message type. </p>

</div>
</div>
<a id="a1b1258107620bb83fd6356815242e19b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b1258107620bb83fd6356815242e19b">&#9670;&nbsp;</a></span>useFahrenheit</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MideaProtocol::useFahrenheit</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this union was generated from the following file:<ul>
<li>src/<a class="el" href="ir__Midea_8h_source.html">ir_Midea.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
